package com.tcm.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * 社会化学院积分列表展示封装
 * @author Guqier
 * @version 1.0
 * @date 2023/8/1 18:14
 */
@Data
public class SocialStudentScoreListResult implements Comparable<SocialStudentScoreListResult>{

    //学员ID
    private Long id;

    //学员编号
    private String num;

    //账号
    private String account;

    //姓名
    private String name;

    //证件号
    private String cardId;

    //社会化班级ID
    private Long clazzId;

    //社会化班级名称
    private String clazzName;

    //社会化项目ID
    private Long projectId;

    //社会化项目名称
    private String projectName;

    //性别，0表示女生，1表示男生
    private Integer gender;

    //电子邮箱
    private String email;

    //手机号码
    private String phone;

    //有效期
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date disableTime;

    //积分
    private Integer score;

    //积分等级名称
    private String rankName;

    @Override
    public int compareTo(SocialStudentScoreListResult o) {
        return Integer.compare(o.score, this.score);
    }
}
